<template>
  <div id="app">
    <router-view></router-view>
    <TabBar>
      <TabBarltem path="/page1">
        <img src="./assets/img/home.svg" slot="item-icon">
         <img src="./assets/img/home_active.svg" slot="item-icon-active">
        <div slot="item-text">页面</div>
      </TabBarltem>
      <TabBarltem path="/page2">
        <img src="./assets/img/category.svg" slot="item-icon">
        <img src="./assets/img/category_active.svg" slot="item-icon-active">
        <div slot="item-text">分类</div>
      </TabBarltem>
      <TabBarltem path="/page3">
        <img src="./assets/img/shopcart.svg" slot="item-icon">
         <img src="./assets/img/shopcart_active.svg" slot="item-icon-active">
        <div slot="item-text">购物车</div>
      </TabBarltem>
      <TabBarltem path="/page4">
        <img src="./assets/img/profile.svg" slot="item-icon">
         <img src="./assets/img/profile_active.svg" slot="item-icon-active">
        <div slot="item-text">我的</div>
      </TabBarltem>
    </TabBar>
  </div>
</template>

<script>
import TabBar from "./components/TabBar.vue";
import TabBarltem from "./components/TabBarltem.vue";
export default {
  name: 'App',
  components:{
    TabBar,TabBarltem
  }
}
</script>

<style>

</style>
